<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.fit.user.dao.*"  %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
   <link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
      	<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>  
    <title>My JSP 'select_all.jsp' starting page</title>
    
<%
String tableName = request.getParameter("tableName");
String caseID = request.getParameter("caseID");
 %>
  </head>
  
  <body>
<%
SelectAllMsgDAO allMsgDAO = new SelectAllMsgDAO();
List<String[]> list = allMsgDAO.getCaseMsg(tableName,caseID);
 %>
 
        <table border="1" cellSpacing="0" cellPadding="0" width="100%">
   
        <%
        for(int i = 0;i<list.size();i++){
        %>
             <tr>
        <%
        String [] table = list.get(i);
        
        %>
          <c:forEach var="name" items="<%=table %>">
			 <td >${name }&nbsp;</td> 
           </c:forEach>
             </tr>
    
        <%
        
        }
        
         %>

    </table>
  </body>
</html>
